package com.lee.ognl;

import java.lang.reflect.Method;
import java.util.List;

import ognl.OgnlRuntime;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
    	 List<?> defaultMehod = OgnlRuntime.getMethods(ClassWithDefaults.class, "defaultMethod", false);
    	 System.out.println(defaultMehod);
    	 Method method = OgnlRuntime.getReadMethod(ClassWithDefaults.class, "defaultMethod");
    	 System.out.println(method);
    	 
    }
}

class SubClassWithDefaults extends ClassWithDefaults {

	public String getName() { return "name"; }

}

class ClassWithDefaults /* implements SubInterfaceWithDefaults */ {

}
